package service;

import dao.AdminstratorDao;
import model.Administrator;

public class AdminstratorService {
    private AdminstratorDao adminstratorDao = new AdminstratorDao();

    public Administrator Login(String account, String password) {
        Administrator administrator = null;
        try {
            administrator = adminstratorDao.selectByUsernamePassword(account, password);
//            System.out.println(administrator+"测试测试");
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (administrator != null) {
            return administrator;
        }
        return null;
    }
}
